<HTML>
<CENTER><A HREF = "http://sparta.sandia.gov">SPARTA WWW Site</A> - <A HREF = "Manual.html">SPARTA Documentation</A> - <A HREF = "Section_commands.html#comm">SPARTA Commands</A> 
</CENTER>






<HR>

<H3>dump_modify command 
</H3>
<P><B>Syntax:</B>
</P>
<PRE>dump_modify dump-ID keyword values ... 
</PRE>
<UL><LI>dump-ID = ID of dump to modify 

<LI>one or more keyword/value pairs may be appended 

<LI>these keywords apply to various dump styles 

<LI>keyword = <I>append</I> or <I>buffer</I> or <I>every</I> or <I>fileper</I> or <I>first</I> or <I>flush</I> or <I>format</I> or <I>nfile</I> or <I>pad</I> or <I>region</I> or <I>thresh</I> 

<PRE>  <I>append</I> arg = <I>yes</I> or <I>no</I>
  <I>buffer</I> arg = <I>yes</I> or <I>no</I>
  <I>every</I> arg = N
    N = dump every this many timesteps
    N can be a variable (see below)
  <I>fileper</I> arg = Np
    Np = write one file for every this many processors
  <I>first</I> arg = <I>yes</I> or <I>no</I>
  <I>flush</I> arg = <I>yes</I> or <I>no</I>
  <I>format</I> args = <I>line</I> string, <I>int</I> string, <I>float</I> string, M string, or <I>none</I>
    string = C-style format string
    M = integer from 1 to N, where N = # of per-atom quantities being output
  <I>nfile</I> arg = Nf
    Nf = write this many files, one from each of Nf processors
  <I>pad</I> arg = Nchar = # of characters to convert timestep to
  <I>region</I> arg = region-ID or "none"
  <I>thresh</I> args = attribute operation value
    attribute = same attributes (x,fy,etotal,sxx,etc) used by dump custom style
    operation = "<" or "<=" or ">" or ">=" or "==" or "!="
    value = numeric value to compare to
    these 3 args can be replaced by the word "none" to turn off thresholding 
</PRE>
<LI>these keywords apply only to the (image</I> and <I>movie</I> <A HREF = "dump_image.html">styles</A> 

<LI>keyword = <I>bcolor</I> or <I>bdiam</I> or <I>backcolor</I> or <I>bitrate</I> or <I>boxcolor</I> or <I>cmap</I> or <I>color</I> or <I>framerate</I> or <I>gcolor</I> or <I>glinecolor</I> or <I>pcolor</I> or <I>pdiam</I> or <I>scolor</I> or <I>slinecolor</I> 

<PRE>  <I>backcolor</I> arg = color
    color = name of color for background
  <I>bitrate</I> arg = rate
    rate = target bitrate for movie in kbps
  <I>boxcolor</I> arg = color
    color = name of color for box lines
  <I>cmap</I> args = mode lo hi style delta N entry1 entry2 ... entryN
    mode = <I>particle</I> or <I>grid</I> or <I>surf</I> or <I>xplane</I> or <I>yplane</I> or <I>zplane</I>
    lo = number or <I>min</I> = lower bound of range of color map
    hi = number or <I>max</I> = upper bound of range of color map
    style = 2 letters = "c" or "d" or "s" plus "a" or "f"
      "c" for continuous
      "d" for discrete
      "s" for sequential
      "a" for absolute
      "f" for fractional
    delta = binsize (only used for style "s", otherwise ignored)
      binsize = range is divided into bins of this width
    N = # of subsequent entries
    entry = value color (for continuous style)
      value = number or <I>min</I> or <I>max</I> = single value within range
      color = name of color used for that value
    entry = lo hi color (for discrete style)
      lo/hi = number or <I>min</I> or <I>max</I> = lower/upper bound of subset of range
      color = name of color used for that subset of values
    entry = color (for sequential style)
      color = name of color used for a bin of values
  <I>color</I> args = name R G B
    name = name of color
    R,G,B = red/green/blue numeric values from 0.0 to 1.0
  <I>framerate</I> arg = fps
    fps = frames per second for movie
  <I>gcolor</I> args = proc color
    proc = proc ID or range of IDs (see below)
    color = name of color or color1/color2/...
  <I>glinecolor</I> arg = color
    color = name of color for grid cell outlines
  <I>pcolor</I> args = type color
    type = particle type or range of types or proc ID or range of IDs (see below)
    color = name of color or color1/color2/...
  <I>pdiam</I> args = type diam
    type = particle type or range of types (see below)
    diam = diameter of particles of that type (distance units)
  <I>scolor</I> args = proc color
    proc = proc ID or range of IDs (see below)
    color = name of color for surf one option
  <I>slinecolor</I> arg = color
    color = name of color for surface element outlines 
</PRE>

</UL>
<P><B>Examples:</B>
</P>
<PRE>dump_modify 1 format line "%d %d %20.15g %g %g"
dump_modify 1 format float %20.15g
dump_modify myDump thresh x < 0.0 thresh vx >= 3.0
dump_modify 1 every 1000
dump_modify 1 every v_myVar
dump_modify 1 cmap particle min max cf 0.0 3 min green 0.5 yellow max blue boxcolor red 
</PRE>
<P><B>Description:</B>
</P>
<P>Modify the parameters of a previously defined dump command.  Not all
parameters are relevant to all dump styles.
</P>
<HR>

<HR>

<P>These keywords apply to all dump styles unless otherwise noted.  The
descriptions give details.
</P>
<HR>

<P>The <I>append</I> keyword applies to all dump styles except <I>image</I> and
<I>movie</I>.  It also applies only to text output files, not to binary or
gzipped files.  If specified as <I>yes</I>, then dump snapshots are
appended to the end of an existing dump file.  If specified as <I>no</I>,
then a new dump file will be created which will overwrite an existing
file with the same name.  This keyword can only take effect if the
dump_modify command is used after the <A HREF = "dump.html">dump</A> command, but
before the first command that causes dump snapshots to be output,
e.g. a <A HREF = "run.html">run</A> command.  Once the dump file has been opened,
this keyword has no further effect.
</P>
<HR>

<P>The <I>buffer</I> keyword applies only all dump styles except <I>image</I> and
<I>movie</I>.  It also applies only to text output files, not to binary or
gzipped files.  If specified as <I>yes</I>, which is the default, then each
processor writes its output into an internal text buffer, which is
then sent to the processor(s) which perform file writes, and written
by those processors(s) as one large chunk of text.  If specified as
<I>no</I>, each processor sends its per-atom data in binary format to the
processor(s) which perform file wirtes, and those processor(s) format
and write it line by line into the output file.
</P>
<P>The buffering mode is typically faster since each processor does the
relatively expensive task of formatting the output for its own atoms.
However it requires about twice the memory (per processor) for the
extra buffering.
</P>
<HR>

<P>The <I>every</I> keyword changes the dump frequency originally specified by
the <A HREF = "dump.html">dump</A> command to a new value.  The every keyword can be
specified in one of two ways.  It can be a numeric value in which case
it must be > 0.  Or it can be an <A HREF = "variable.html">equal-style variable</A>,
which should be specified as v_name, where name is the variable name.
In this case, the variable is evaluated at the beginning of a run to
determine the next timestep at which a dump snapshot will be written
out.  On that timestep, the variable will be evaluated again to
determine the next timestep, etc.  Thus the variable should return
timestep values.  See the stagger() and logfreq() math functions for
<A HREF = "variable.html">equal-style variables</A>, as examples of useful functions
to use in this context.  Other similar math functions could easily be
added as options for <A HREF = "variable.html">equal-style variables</A>.  When
using the variable option with the <I>every</I> keyword, you also need to
use the <I>first</I> option if you want an initial snapshot written to the
dump file.
</P>
<P>For example, the following commands will
write snapshots at timesteps 0,10,20,30,100,200,300,1000,2000,etc:
</P>
<PRE>variable	        s equal logfreq(10,3,10)
dump		1 particle all 100 tmp.dump id type x y z
dump_modify	1 every v_s first yes 
</PRE>
<HR>

<P>The <I>fileper</I> keyword is documented below with the <I>nfile</I> keyword.
</P>
<HR>

<P>The <I>first</I> keyword determines whether a dump snapshot is written on
the very first timestep after the dump command is invoked.  This will
always occur if the current timestep is a multiple of N, the frequency
specified in the <A HREF = "dump.html">dump</A> command, including timestep 0.  But
if this is not the case, a dump snapshot will only be written if the
setting of this keyword is <I>yes</I>.  If it is <I>no</I>, which is the
default, then it will not be written.
</P>
<HR>

<P>The <I>flush</I> keyword applies to all dump styles except <I>image</I> and
<I>movie</I>.  It also applies only when the styles are used to write
multiple successive snapshots to the same file.  It determines whether
a flush operation is invoked after a dump snapshot is written to the
dump file.  A flush insures the output in that file is current (no
buffering by the OS), even if SPARTA halts before the simulation
completes.
</P>
<HR>

<P>The <I>format</I> keyword can be used to change the default numeric format
output by the text-based dump styles: <I>particle</I>, <I>grid</I>, <I>surf</I>.
</P>
<P>All the specified format strings are C-style formats, e.g. as used by
the C/C++ printf() command.  The <I>line</I> keyword takes a single
argument which is the format string for an entire line of output with
N fields for each particle, grid cell, or suraface elememt, which you
must enclose in quotes if it is more than one field.  The <I>int</I> and
<I>float</I> keywords take a single format argument and are applied to all
integer or floating-point quantities output.  The setting for <I>M
string</I> also takes a single format argument which is used for the Mth
value output in each line, e.g. the 5th column is output in high
precision for "format 5 %20.15g".
</P>
<P>The <I>format</I> keyword can be used multiple times.  The precedence is
that for each value in a line of output, the <I>M</I> format (if specified)
is used, else the <I>int</I> or <I>float</I> setting (if specified) is used,
else the <I>line</I> setting (if specified) for that value is used, else
the default setting is used.  A setting of <I>none</I> clears all previous
settings, reverting all values to their default format.
</P>
<P>NOTE: Grid cell IDs are stored internally as 4-byte or 8-byte signed
integers, depending on how SPARTA was compiled.  When specifying the
<I>format int</I> option you can use a "%d"-style format identifier in the
format string and SPARTA will convert this to the corresponding 8-byte
form it it is needed when outputting those values.  However, when
specifying the <I>line</I> option or <I>format M string</I> option for those
values, you should specify a format string appropriate for an 8-byte
signed integer, e.g. one with "%ld", if SPARTA was compiled with the
-DSPARTA_BIGBIG option for 8-byte IDs.
</P>
<HR>

<P>The <I>nfile</I> or <I>fileper</I> keywords apply to all dump styles except
<I>image</I> and <I>movie</I>.  They can be used in conjunction with the "%"
wildcard character in the specified dump file name.  As explained on
the <A HREF = "dump.html">dump</A> command doc page, the "%" character causes the
dump file to be written in pieces, one piece for each of P processors.
By default P = the number of processors the simulation is running on.
The <I>nfile</I> or <I>fileper</I> keyword can be used to set P to a smaller
value, which can be more efficient when running on a large number of
processors.
</P>
<P>The <I>nfile</I> keyword sets P to the specified Nf value.  For example, if
Nf = 4, and the simulation is running on 100 processors, 4 files will
be written, by processors 0,25,50,75.  Each will collect information
from itself and the next 24 processors and write it to a dump file.
</P>
<P>For the <I>fileper</I> keyword, the specified value of Np means write one
file for every Np processors.  For example, if Np = 4, every 4th
processor (0,4,8,12,etc) will collect information from itself and the
next 3 processors and write it to a dump file.
</P>
<HR>

<P>The <I>pad</I> keyword only applies when the dump filename is specified
with a wildcard "*" character which becomes the timestep.  If <I>pad</I> is
0, which is the default, the timestep is converted into a string of
unpadded length, e.g. 100 or 12000 or 2000000.  When <I>pad</I> is
specified with <I>Nchar</I> > 0, the string is padded with leading zeroes
so they are all the same length = <I>Nchar</I>.  For example, pad 7 would
yield 0000100, 0012000, 2000000.  This can be useful so that
post-processing programs can easily read the files in ascending
timestep order.
</P>
<HR>

<P>The <I>region</I> keyword only applies to the dump <I>particle</I> and <I>image</I>
styles.  If specified, only particles in the region will be written to
the dump file or included in the image.  Only one region can be
applied as a filter (the last one specified).  See the
<A HREF = "region.html">region</A> command for more details.  Note that a region can
be defined as the "inside" or "outside" of a geometric shape, and it
can be the "union" or "intersection" of a series of simpler regions.
</P>
<HR>

<P>The <I>thresh</I> keyword only applies to the dump <I>particle</I> and <I>image</I>
styles.  Multiple thresholds can be specified.  Specifying "none"
turns off all threshold criteria.  If thresholds are specified, only
particles whose attributes meet all the threshold criteria are written
to the dump file or included in the image.  The possible attributes
that can be tested for are the same as those that can be specified in
the <A HREF = "dump.html">dump particle</A> command.  Note that different attributes
can be output by the dump particle command than are used as threshold
criteria by the dump_modify command.  E.g. you can output the
coordinates of particles whose velocity components are above some
threshold.
</P>
<HR>

<HR>

<P>These keywords apply only to the <A HREF = "dump_image.html">dump image</A> and
<A HREF = "dump_image.html">dump movie</A> styles.  Any keyword that affects an
image, also affects a movie, since the movie is simply a collection of
images.  Some of the keywords only affect the <A HREF = "dump_image.html">dump
movie</A> style.  The descriptions give details.
</P>
<HR>

<P>The <I>backcolor</I> keyword can be used with the <A HREF = "dump_image.html">dump
image</A> command to set the background color of the
images.  The color name can be any of the 140 pre-defined colors (see
below) or a color name defined by the dump_modify color option.
</P>
<HR>

<P>The <I>bitrate</I> keyword can be used with the <A HREF = "dump_image.html">dump
movie</A> command to define the size of the resulting
movie file and its quality via setting how many kbits per second are
to be used for the movie file. Higher bitrates require less
compression and will result in higher quality movies.  The quality is
also determined by the compression format and encoder.  The default
setting is 2000 kbit/s, which will result in average quality with
older compression formats.
</P>
<P>IMPORTANT NOTE: Not all movie file formats supported by dump movie
allow the bitrate to be set.  If not, the setting is silently ignored.
</P>
<HR>

<P>The <I>boxcolor</I> keyword can be used with the <A HREF = "dump_image.html">dump
image</A> command to set the color of the simulation box
drawn around the particles in each image.  See the "dump image box"
command for how to specify that a box be drawn.  The color name can be
any of the 140 pre-defined colors (see below) or a color name defined
by the dump_modify color option.
</P>
<HR>

<P>The <I>cmap</I> keyword can be used with the <A HREF = "dump_image.html">dump image</A>
command to define a color map that is used to draw "objects" which can
be particles, grid cells, or surface elements.  The mode setting must
be <I>particle</I> or <I>grid</I> or <I>surf</I> or <I>gridx</I> or <I>gridy</I> or <I>gridz</I> which
correspond to the same keywords in the <A HREF = "dump_image.html">dump image</A>
command.
</P>
<P>Color maps are used to assign a specific RGB (red/green/blue) color
value to an individual object when it is drawn, based on the object's
attribute, which is a numeric value, e.g. the x-component of velocity
for a particle, if the particle-attribute "vx" was specified in the
<A HREF = "dump_image.html">dump image</A> command.
</P>
<P>The basic idea of a color map is that the attribute will be within a
range of values, and that range is associated with a a series of
colors (e.g. red, blue, green).  A specific value (vx = -3.2) can then
mapped to the series of colors (e.g. halfway between red and blue),
and a specific color is determined via an interpolation procedure.
</P>
<P>There are many possible options for the color map, enabled by the
<I>cmap</I> keyword.  Here are the details.
</P>
<P>The <I>lo</I> and <I>hi</I> settings determine the range of values allowed for
the attribute.  If numeric values are used for <I>lo</I> and/or <I>hi</I>, then
values that are lower/higher than that value are set to the value.
I.e. the range is static.  If <I>lo</I> is specified as <I>min</I> or <I>hi</I> as
<I>max</I> then the range is dynamic, and the lower and/or upper bound will
be calculated each time an image is drawn, based on the set of objects
being visualized.
</P>
<P>The <I>style</I> setting is two letters, such as "ca".  The first letter is
either "c" for continuous, "d" for discrete, or "s" for sequential.
The second letter is either "a" for absolute, or "f" for fractional.
</P>
<P>A continuous color map is one in which the color changes continuously
from value to value within the range.  A discrete color map is one in
which discrete colors are assigned to sub-ranges of values within the
range.  A sequential color map is one in which discrete colors are
assigned to a sequence of sub-ranges of values covering the entire
range.
</P>
<P>An absolute color map is one in which the values to which colors are
assigned are specified explicitly as values within the range.  A
fractional color map is one in which the values to which colors are
assigned are specified as a fractional portion of the range.  For
example if the range is from -10.0 to 10.0, and the color red is to be
assigned to objects with a value of 5.0, then for an absolute color
map the number 5.0 would be used.  But for a fractional map, the
number 0.75 would be used since 5.0 is 3/4 of the way from -10.0 to
10.0.
</P>
<P>The <I>delta</I> setting is only specified if the style is sequential.  It
specifies the bin size to use within the range for assigning
consecutive colors to.  For example, if the range is from -10.0 to
10.0 and a <I>delta</I> of 1.0 is used, then 20 colors will be assigned to
the range.  The first will be from -10.0 <= color1 < -9.0, then 2nd
from -9.0 <= color2 < -8.0, etc.
</P>
<P>The <I>N</I> setting is how many entries follow.  The format of the entries
depends on whether the color map style is continuous, discrete or
sequential.  In all cases the <I>color</I> setting can be any of the 140
pre-defined colors (see below) or a color name defined by the
dump_modify color option.
</P>
<P>For continuous color maps, each entry has a <I>value</I> and a <I>color</I>.
The <I>value</I> is either a number within the range of values or <I>min</I> or
<I>max</I>.  The <I>value</I> of the first entry must be <I>min</I> and the <I>value</I>
of the last entry must be <I>max</I>.  Any entries in between must have
increasing values.  Note that numeric values can be specified either
as absolute numbers or as fractions (0.0 to 1.0) of the range,
depending on the "a" or "f" in the style setting for the color map.
</P>
<P>Here is how the entries are used to determine the color of an
individual object, given the value X of its attribute.  X will fall
between 2 of the entry values.  The color of the object is linearly
interpolated (in each of the RGB values) between the 2 colors
associated with those entries.  For example, if X = -5.0 and the 2
surrounding entries are "red" at -10.0 and "blue" at 0.0, then the
object's color will be halfway between "red" and "blue", which happens
to be "purple".
</P>
<P>For discrete color maps, each entry has a <I>lo</I> and <I>hi</I> value and a
<I>color</I>.  The <I>lo</I> and <I>hi</I> settings are either numbers within the
range of values or <I>lo</I> can be <I>min</I> or <I>hi</I> can be <I>max</I>.  The <I>lo</I>
and <I>hi</I> settings of the last entry must be <I>min</I> and <I>max</I>.  Other
entries can have any <I>lo</I> and <I>hi</I> values and the sub-ranges of
different values can overlap.  Note that numeric <I>lo</I> and <I>hi</I> values
can be specified either as absolute numbers or as fractions (0.0 to
1.0) of the range, depending on the "a" or "f" in the style setting
for the color map.
</P>
<P>Here is how the entries are used to determine the color of an
individual object, given the value X of its attribute.  The entries
are scanned from first to last.  The first time that <I>lo</I> <= X <=
<I>hi</I>, X is assigned the color associated with that entry.  You can
think of the last entry as assigning a default color (since it will
always be matched by X), and the earlier entries as colors that
override the default.  Also note that no interpolation of a color RGB
is done.  All objects will be drawn with one of the colors in the list
of entries.
</P>
<P>For sequential color maps, each entry has only a <I>color</I>.  Here is how
the entries are used to determine the color of an individual object,
given the value X of its attribute.  The range is partitioned into N
bins of width <I>binsize</I>.  Thus X will fall in a specific bin from 1 to
N, say the Mth bin.  If it falls on a boundary between 2 bins, it is
considered to be in the higher of the 2 bins.  Each bin is assigned a
color from the E entries.  If E < N, then the colors are repeated.
For example if 2 entries with colors red and green are specified, then
the odd numbered bins will be red and the even bins green.  The color
of the object is the color of its bin.  Note that the sequential
color map is really a shorthand way of defining a discrete color map
without having to specify where all the bin boundaries are.
</P>
<HR>

<P>The <I>color</I> keyword can be used with the <A HREF = "dump_image.html">dump image</A>
command to define a new color name, in addition to the 140-predefined
colors (see below), and associates 3 red/green/blue RGB values with
that color name.  The color name can then be used with any other
dump_modify keyword that takes a color name as a value.  The RGB
values should each be floating point values between 0.0 and 1.0
inclusive.
</P>
<P>When a color name is converted to RGB values, the user-defined color
names are searched first, then the 140 pre-defined color names.  This
means you can also use the <I>color</I> keyword to overwrite one of the
pre-defined color names with new RBG values.
</P>
<HR>

<P>The <I>framerate</I> keyword can be used with the <A HREF = "dump_image.html">dump
movie</A> command to define the duration of the resulting
movie file.  Movie files written by the dump <I>movie</I> command have a
default frame rate of 24 frames per second and the images generated
will be converted at that rate.  Thus a sequence of 1000 dump images
will result in a movie of about 42 seconds.  To make a movie run
longer you can either generate images more frequently or lower the
frame rate.  To speed a movie up, you can do the inverse.  Using a
frame rate higher than 24 is not recommended, as it will result in
simply dropping the rendered images. It is more efficient to dump
images less frequently.
</P>
<HR>

<P>The <I>gcolor</I> keyword can be used one or more times with the <A HREF = "dump_image.html">dump
image</A> command, only when its grid color setting is
<I>proc</I>, to set the color that grid cells will be drawn in the image.
</P>
<P>The <I>proc</I> setting should be an integer from 1 to Nprocs = the number
of processors.  A wildcard asterisk can be used in place of or in
conjunction with the <I>proc</I> argument to specify a range of processor
IDs.  This takes the form "*" or "*n" or "n*" or "m*n".  If N = the
number of processors, then an asterisk with no numeric values means
all procs from 1 to N.  A leading asterisk means all procs from 1 to n
(inclusive).  A trailing asterisk means all procs from n to N
(inclusive).  A middle asterisk means all procs from m to n
(inclusive).  Note that for this command, processor IDs range from 1
to Nprocs inclusive, instead of the more customary 0 to Nprocs-1.
</P>
<P>The specified <I>color</I> can be a single color which is any of the 140
pre-defined colors (see below) or a color name defined by the
dump_modify color option.  Or it can be two or more colors separated
by a "/" character, e.g. red/green/blue.  In the former case, that
color is assigned to all the specified processors.  In the latter
case, the list of colors are assigned in a round-robin fashion to each
of the specified processors.
</P>
<HR>

<P>The <I>glinecolor</I> keyword can be used with the <A HREF = "dump_image.html">dump
image</A> command to set the color of the grid cell
outlines drawn around the grid cells in each image.  See the "dump
image gline" command for how to specify that cell outlines be drawn.
The color name can be any of the 140 pre-defined colors (see below) or
a color name defined by the dump_modify color option.
</P>
<HR>

<P>The <I>pcolor</I> keyword can be used one or more times with the <A HREF = "dump_image.html">dump
image</A> command, only when its particle color setting is
<I>type</I> or <I>procs</I>, to set the color that particles will be drawn in
the image.
</P>
<P>If the particle color setting is <I>type</I>, then the specified <I>type</I> for the
<I>pcolor</I> keyword should be an integer from 1 to Ntypes = the number of
particle types.  A wildcard asterisk can be used in place of or in
conjunction with the <I>type</I> argument to specify a range of particle
types.  This takes the form "*" or "*n" or "n*" or "m*n".  If N = the
number of particle types, then an asterisk with no numeric values
means all types from 1 to N.  A leading asterisk means all types from
1 to n (inclusive).  A trailing asterisk means all types from n to N
(inclusive).  A middle asterisk means all types from m to n
(inclusive).
</P>
<P>If the particle color setting is <I>proc</I>, then the specified <I>type</I> for the
<I>pcolor</I> keyword should be an integer from 1 to Nprocs = the number of
processors.  A wildcard asterisk can be used in place of or in
conjunction with the <I>type</I> argument to specify a range of processor
IDs, just as described above for particle types.  Note that for this
command, processor IDs range from 1 to Nprocs inclusive, instead of
the more customary 0 to Nprocs-1.
</P>
<P>The specified <I>color</I> can be a single color which is any of the 140
pre-defined colors (see below) or a color name defined by the
dump_modify color option.  Or it can be two or more colors separated
by a "/" character, e.g. red/green/blue.  In the former case, that
color is assigned to all the specified particle types.  In the latter
case, the list of colors are assigned in a round-robin fashion to each
of the specified particle types.
</P>
<HR>

<P>The <I>pdiam</I> keyword can be used with the <A HREF = "dump_image.html">dump image</A>
command, when its particle diameter setting is <I>type</I>, to set the size
that particles of each type will be drawn in the image.  The specified
<I>type</I> should be an integer from 1 to Ntypes.  As with the <I>pcolor</I>
keyword, a wildcard asterisk can be used as part of the <I>type</I>
argument to specify a range of particle types.  The specified <I>diam</I>
is the size in whatever distance <A HREF = "units.html">units</A> the input script
is using.
</P>
<HR>

<P>The <I>scolor</I> keyword can be used one or more times with the <A HREF = "dump_image.html">dump
image</A> command, only when its surface element color
setting is <I>one</I> or <I>proc</I>, to set the color that surface elements
will be drawn in the image.
</P>
<P>When the surf color is <I>one</I>, the <I>proc</I> setting for this command
is ignored.
</P>
<P>When the surf color is <I>proc</I>, the <I>proc</I> setting for this command
should be an integer from 1 to Nprocs = the number of processors.  A
wildcard asterisk can be used in place of or in conjunction with the
<I>proc</I> argument to specify a range of processor IDs.  This takes the
form "*" or "*n" or "n*" or "m*n".  If N = the number of processors,
then an asterisk with no numeric values means all procs from 1 to N.
A leading asterisk means all procs from 1 to n (inclusive).  A
trailing asterisk means all procs from n to N (inclusive).  A middle
asterisk means all procs from m to n (inclusive).  Note that for this
command, processor IDs range from 1 to Nprocs inclusive, instead of
the more customary 0 to Nprocs-1.
</P>
<P>When the surf color is <I>one</I>, the specified <I>color</I> setting for
this command must be a single color which is any of the 140
pre-defined colors (see below) or a color name defined by the
dump_modify color option.  
</P>
<P>When the surf color is <I>proc</I>, the <I>color</I> setting for this command
can be one or more colors separated by a "/" character,
e.g. red/green/blue.  For a single color, that color is assigned to
all the specified processors.  For two or more colors, the list of
colors are assigned in a round-robin fashion to each of the specified
processors.
</P>
<HR>

<P>The <I>slinecolor</I> keyword can be used with the <A HREF = "dump_image.html">dump
image</A> command to set the color of the surface element
outlines drawn around the surface elements in each image.  See the
"dump image sline" command for how to specify that surface element
outlines be drawn.  The color name can be any of the 140 pre-defined
colors (see below) or a color name defined by the dump_modify color
option.
</P>
<HR>

<P><B>Restrictions:</B> none
</P>
<P><B>Related commands:</B>
</P>
<P><A HREF = "dump.html">dump</A>, <A HREF = "dump_image.html">dump image</A>, <A HREF = "undump.html">undump</A>
</P>
<P><B>Default:</B>
</P>
<P>The option defaults are
</P>
<UL><LI>append = no
<LI>buffer = yes for all dump styles except <I>image</I> and <I>movie</I>
<LI>backcolor = black
<LI>boxcolor = yellow
<LI>cmap = mode min max cf 0.0 2 min blue max red, for all modes
<LI>color = 140 color names are pre-defined as listed below
<LI>every = whatever it was set to via the <A HREF = "dump.html">dump</A> command
<LI>fileper = # of processors
<LI>first = no
<LI>flush = yes
<LI>format = %d and %g for each integer or floating point value
<LI>gcolor = * red/green/blue/yellow/aqua/cyan
<LI>glinecolor = white
<LI>nfile = 1
<LI>pad = 0
<LI>pcolor = * red/green/blue/yellow/aqua/cyan
<LI>pdiam = * 1.0
<LI>region = none
<LI>scolor = * gray
<LI>slinecolor = white
<LI>thresh = none 
</UL>
<HR>

<P>These are the 140 colors that SPARTA pre-defines for use with the
<A HREF = "dump_image.html">dump image</A> and dump_modify commands.  Additional
colors can be defined with the dump_modify color command.  The 3
numbers listed for each name are the RGB (red/green/blue) values.
Divide each value by 255 to get the equivalent 0.0 to 1.0 value.
</P>
<DIV ALIGN=center><TABLE  BORDER=1 >
<TR><TD >aliceblue = 240, 248, 255 </TD><TD >antiquewhite = 250, 235, 215 </TD><TD >aqua = 0, 255, 255 </TD><TD >aquamarine = 127, 255, 212 </TD><TD >azure = 240, 255, 255 </TD></TR>
<TR><TD >beige = 245, 245, 220 </TD><TD >bisque = 255, 228, 196 </TD><TD >black = 0, 0, 0 </TD><TD >blanchedalmond = 255, 255, 205 </TD><TD >blue = 0, 0, 255 </TD></TR>
<TR><TD >blueviolet = 138, 43, 226 </TD><TD >brown = 165, 42, 42 </TD><TD >burlywood = 222, 184, 135 </TD><TD >cadetblue = 95, 158, 160 </TD><TD >chartreuse = 127, 255, 0 </TD></TR>
<TR><TD >chocolate = 210, 105, 30 </TD><TD >coral = 255, 127, 80 </TD><TD >cornflowerblue = 100, 149, 237 </TD><TD >cornsilk = 255, 248, 220 </TD><TD >crimson = 220, 20, 60 </TD></TR>
<TR><TD >cyan = 0, 255, 255 </TD><TD >darkblue = 0, 0, 139 </TD><TD >darkcyan = 0, 139, 139 </TD><TD >darkgoldenrod = 184, 134, 11 </TD><TD >darkgray = 169, 169, 169 </TD></TR>
<TR><TD >darkgreen = 0, 100, 0 </TD><TD >darkkhaki = 189, 183, 107 </TD><TD >darkmagenta = 139, 0, 139 </TD><TD >darkolivegreen = 85, 107, 47 </TD><TD >darkorange = 255, 140, 0 </TD></TR>
<TR><TD >darkorchid = 153, 50, 204 </TD><TD >darkred = 139, 0, 0 </TD><TD >darksalmon = 233, 150, 122 </TD><TD >darkseagreen = 143, 188, 143 </TD><TD >darkslateblue = 72, 61, 139 </TD></TR>
<TR><TD >darkslategray = 47, 79, 79 </TD><TD >darkturquoise = 0, 206, 209 </TD><TD >darkviolet = 148, 0, 211 </TD><TD >deeppink = 255, 20, 147 </TD><TD >deepskyblue = 0, 191, 255 </TD></TR>
<TR><TD >dimgray = 105, 105, 105 </TD><TD >dodgerblue = 30, 144, 255 </TD><TD >firebrick = 178, 34, 34 </TD><TD >floralwhite = 255, 250, 240 </TD><TD >forestgreen = 34, 139, 34 </TD></TR>
<TR><TD >fuchsia = 255, 0, 255 </TD><TD >gainsboro = 220, 220, 220 </TD><TD >ghostwhite = 248, 248, 255 </TD><TD >gold = 255, 215, 0 </TD><TD >goldenrod = 218, 165, 32 </TD></TR>
<TR><TD >gray = 128, 128, 128 </TD><TD >green = 0, 128, 0 </TD><TD >greenyellow = 173, 255, 47 </TD><TD >honeydew = 240, 255, 240 </TD><TD >hotpink = 255, 105, 180 </TD></TR>
<TR><TD >indianred = 205, 92, 92 </TD><TD >indigo = 75, 0, 130 </TD><TD >ivory = 255, 240, 240 </TD><TD >khaki = 240, 230, 140 </TD><TD >lavender = 230, 230, 250 </TD></TR>
<TR><TD >lavenderblush = 255, 240, 245 </TD><TD >lawngreen = 124, 252, 0 </TD><TD >lemonchiffon = 255, 250, 205 </TD><TD >lightblue = 173, 216, 230 </TD><TD >lightcoral = 240, 128, 128 </TD></TR>
<TR><TD >lightcyan = 224, 255, 255 </TD><TD >lightgoldenrodyellow = 250, 250, 210 </TD><TD >lightgreen = 144, 238, 144 </TD><TD >lightgrey = 211, 211, 211 </TD><TD >lightpink = 255, 182, 193 </TD></TR>
<TR><TD >lightsalmon = 255, 160, 122 </TD><TD >lightseagreen = 32, 178, 170 </TD><TD >lightskyblue = 135, 206, 250 </TD><TD >lightslategray = 119, 136, 153 </TD><TD >lightsteelblue = 176, 196, 222 </TD></TR>
<TR><TD >lightyellow = 255, 255, 224 </TD><TD >lime = 0, 255, 0 </TD><TD >limegreen = 50, 205, 50 </TD><TD >linen = 250, 240, 230 </TD><TD >magenta = 255, 0, 255 </TD></TR>
<TR><TD >maroon = 128, 0, 0 </TD><TD >mediumaquamarine = 102, 205, 170 </TD><TD >mediumblue = 0, 0, 205 </TD><TD >mediumorchid = 186, 85, 211 </TD><TD >mediumpurple = 147, 112, 219 </TD></TR>
<TR><TD >mediumseagreen = 60, 179, 113 </TD><TD >mediumslateblue = 123, 104, 238 </TD><TD >mediumspringgreen = 0, 250, 154 </TD><TD >mediumturquoise = 72, 209, 204 </TD><TD >mediumvioletred = 199, 21, 133 </TD></TR>
<TR><TD >midnightblue = 25, 25, 112 </TD><TD >mintcream = 245, 255, 250 </TD><TD >mistyrose = 255, 228, 225 </TD><TD >moccasin = 255, 228, 181 </TD><TD >navajowhite = 255, 222, 173 </TD></TR>
<TR><TD >navy = 0, 0, 128 </TD><TD >oldlace = 253, 245, 230 </TD><TD >olive = 128, 128, 0 </TD><TD >olivedrab = 107, 142, 35 </TD><TD >orange = 255, 165, 0 </TD></TR>
<TR><TD >orangered = 255, 69, 0 </TD><TD >orchid = 218, 112, 214 </TD><TD >palegoldenrod = 238, 232, 170 </TD><TD >palegreen = 152, 251, 152 </TD><TD >paleturquoise = 175, 238, 238 </TD></TR>
<TR><TD >palevioletred = 219, 112, 147 </TD><TD >papayawhip = 255, 239, 213 </TD><TD >peachpuff = 255, 239, 213 </TD><TD >peru = 205, 133, 63 </TD><TD >pink = 255, 192, 203 </TD></TR>
<TR><TD >plum = 221, 160, 221 </TD><TD >powderblue = 176, 224, 230 </TD><TD >purple = 128, 0, 128 </TD><TD >red = 255, 0, 0 </TD><TD >rosybrown = 188, 143, 143 </TD></TR>
<TR><TD >royalblue = 65, 105, 225 </TD><TD >saddlebrown = 139, 69, 19 </TD><TD >salmon = 250, 128, 114 </TD><TD >sandybrown = 244, 164, 96 </TD><TD >seagreen = 46, 139, 87 </TD></TR>
<TR><TD >seashell = 255, 245, 238 </TD><TD >sienna = 160, 82, 45 </TD><TD >silver = 192, 192, 192 </TD><TD >skyblue = 135, 206, 235 </TD><TD >slateblue = 106, 90, 205 </TD></TR>
<TR><TD >slategray = 112, 128, 144 </TD><TD >snow = 255, 250, 250 </TD><TD >springgreen = 0, 255, 127 </TD><TD >steelblue = 70, 130, 180 </TD><TD >tan = 210, 180, 140 </TD></TR>
<TR><TD >teal = 0, 128, 128 </TD><TD >thistle = 216, 191, 216 </TD><TD >tomato = 253, 99, 71 </TD><TD >turquoise = 64, 224, 208 </TD><TD >violet = 238, 130, 238 </TD></TR>
<TR><TD >wheat = 245, 222, 179 </TD><TD >white = 255, 255, 255 </TD><TD >whitesmoke = 245, 245, 245 </TD><TD >yellow = 255, 255, 0 </TD><TD >yellowgreen = 154, 205, 50 
</TD></TR></TABLE></DIV>

</HTML>
